import os, rarfile

xpath= "D:/Books/business-plans/10_alt/extract"

dpath= "D:/Books/business-plans/10_alt"

def unrar(dpath, xpath):
    for rar in os.listdir(dpath):
        filepath = os.path.join(dpath, rar)
        with rarfile.RarFile(filepath) as opened_rar:
            for f in opened_rar.infolist():
                print (f.filename, f.file_size)
            opened_rar.extractall(xpath)

unrar(dpath, xpath)